import { defHttp } from "@/utils/http";

// ERP 库存调拨明细 API
export const invtDeptMvApi = {
	// 获得库存调拨明细分页
	invtDeptMvList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept-mv/page`, params });
	},
	// 新增库存调拨明细
	invtDeptMvCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept-mv/create`, data });
	},

	// 修改库存调拨明细
	invtDeptMvUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept-mv/update`, data });
	},

	// 删除库存调拨明细
	invtDeptMvDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept-mv/delete?id=` + id });
	}
};
